#!/bin/sh
echo "Generating Default Files"
echo "----------------------------------------------------------------------"
if [ -f "common.mk" ]; then
    echo "common.mk already generated."
else
    echo "Generating common.mk..."
    echo "CMAKE=/usr/bin/env cmake" > common.mk
fi
if [ -f "audio-lib.txt" ]; then
    echo "audio-lib.txt already generated."
else
    echo "Generating audio-lib.txt..."
    echo "set(oss FALSE)" > audio-lib.txt
    echo "set(alsa FALSE)" >> audio-lib.txt
fi
echo
echo "Instructions"
echo "----------------------------------------------------------------------"
echo "* Please put CMake (cmake/bin) and QMake (Qt/bin) on your path."
echo
echo "* Please edit audio-lib.txt and change"
echo "  set(oss FALSE) to set(oss TRUE) if you want OSS support, and"
echo "  set(alsa FALSE) to set(alsa TRUE) if you want ALSA support."
echo "  If you don't want audio or don't have these libraries, you can"
echo "  leave the file unchanged."
